<?php
$call=$_SERVER["REQUEST_URI"];
$call=parse_url($call);
$call=$call[path];
$call = substr ($call, strrpos($call,'/'), -4);
$call= substr ($call, 1); 
?>
<!--侧边栏-->
<div class="layui-side layui-bg-black" id="menus_area">
<div class="layui-side-scroll">
<style type="text/css">
.menus_area{width:200px;height:auto !important;overflow:visible !important;position:fixed;height:100% !important;background-color:#393D49;color:#c2c2c2}
.menus_area li{line-height:33px;font-size:14px;color:#333;float:left;width:100%;}
.menus_area li ul{display:none;color:#666;padding:5px 0 5px 30px;}
.menus_area li ul li{float:none;background-image:none;height:26px;line-height:26px;margin-top:0px;font-size:12px;}
.menus_area li ul li a{padding-left:30px;display:block;color:#c2c2c2;line-height:20px;}
.menus_area li ul li a.cur{color: #fff;text-decoration:none;}
.menus_area li ul a:hover{color:#6fb600;}
.menus_area dt img{position:absolute;right:10px;top:20px;}
.menus_area dt{padding-left:40px;padding-right:10px;background-repeat:no-repeat;background-position:10px center;background-color: #393D49;color:#c2c2c2;font-size:14px;position:relative;line-height:48px;cursor:pointer;}
</style>
<div class="menus_area">
<ul class="clearfix" >
<li><dt><i class="fa fa-home"></i>   管理菜单<img src="images/select_xl01.png"></dt>
<ul  <?php if ($call=="home" or $call=="count"){?>style="display:block;" <?php }?> >               
<li><a href="home.php" <?php if ($call=="home"){?>class="cur"<?php }?>>网站概览</a></li>
<li><a href="count.php" <?php if ($call=="count"){?>class="cur"<?php }?>>网站统计</a></li>                    
</ul>
</li>
<li><dt><i class="fa fa-gears"></i>   系统配置<img src="images/select_xl01.png"></dt>
<ul <?php if ($call=="gl"  or $call=="peizhi"  or $call=="admin"  or $call=="nav" or $call=="dsjfl" or $call=="zhifu" or $call=="laiyuan" or $call=="lb" or $call=="tulb" or $call=="hd" or $call=="ly"){?>style="display:block;" <?php }?>>               
<li><a href="gl.php" <?php if ($call=="gl"){?>class="cur"<?php }?>>基础配置</a></li>
<li><a href="admin.php" <?php if ($call=="admin"){?>class="cur"<?php }?>>管理账户</a></li>          
<li><a href="nav.php" <?php if ($call=="nav" ){?>class="cur"<?php }?>>导航设置</a></li>
<li><a href="zhifu.php" <?php if ($call=="zhifu" ){?>class="cur"<?php }?>>支付设置</a></li>
<li><a href="lb.php" <?php if ($call=="lb" ){?>class="cur"<?php }?>>分类编辑</a></li>
<li><a href="hd.php" <?php if ($call=="hd" ){?>class="cur"<?php }?>>幻灯设置</a></li>
</ul>
</li>
<li><dt><i class="fa fa-bar-chart"></i>  订单管理<img src="images/select_xl01.png"></dt>
<ul <?php if ($call=="jiesuan" or $call=="shuju"){?>style="display:block;" <?php }?> >               
<li><a href="shuju.php" <?php if ($call=="shuju"){?>class="cur"<?php }?>>订单列表</a></li>  
<li><a href="jiesuan.php" <?php if ($call=="jiesuan"){?>class="cur"<?php }?>>审核提现</a></li>              
</ul>
</li>

<li><dt><i class="fa fa-user"></i> 会员管理<img src="images/select_xl01.png"></dt>
<ul <?php if ($call=="user"  or $call=="useredit" or $call=="adduser" ){?>style="display:block;" <?php }?>>
<li><a href="user.php" <?php if ($call=="user" or $call=="useredit" or $call=="adduser"){?>class="cur"<?php }?>>会员列表</a></li>               
</ul>
</li>
<li><dt><i class="fa fa-video-camera"></i>  媒体管理<img src="images/select_xl01.png"></dt>
<ul <?php if ($call=="cp" or $call=="add" or $call=="cpedit" or $call=="dygl" or $call=="dyadd" or $call=="dyedit" or $call=="dsjgl" or $call=="dsjadd" or $call=="dsjedit" or $call=="dmgl" or $call=="dmadd" or $call=="dsjedit" or $call=="dmgl" or $call=="dmadd" or $call=="dmedit" or $call=="zygl" or $call=="zyadd" or $call=="zyedit" or $call=="xc2" or $call=="xcadd" or $call=="xcedit"){?>style="display:block;" <?php }?>>               
<li><a href="cp.php" <?php if ($call=="cp" or $call=="add" or $call=="cpedit"){?>class="cur"<?php }?>>视频管理</a></li>
</ul>
</li>

<li><dt><i class="fa fa-sitemap"></i> 代理管理<img src="images/select_xl01.png"></dt>
<ul <?php if ($call=="distributor"  or $call=="distributor_list"  or $call=="distributor_base"){?>style="display:block;" <?php }?>>
<li><a href="distributor.php" <?php if ($call=="distributor"){?>class="cur"<?php }?>>代理人员</a></li>

</ul>
</li>

<li><dt><i class="fa fa-commenting"></i> 评论管理<img src="images/select_xl01.png"></dt>
<ul <?php if ($call=="pl" ){?>style="display:block;" <?php }?>>
<li><a href="pl.php" <?php if ($call=="pl"){?>class="cur"<?php }?>>评论列表</a></li>               
</ul>
</li>
</ul>
</div>
<script type="text/javascript">
$(function () {
$(".menus_area ul li").click(function(){
var thisSpan=$(this);
$(".menus_area ul li ul").prev("a").removeClass("cur");
$("ul", this).prev("a").addClass("cur");
$(this).children("ul").slideDown("fast");
$(this).siblings().children("ul").slideUp("fast");
})
});
</script>
</div>
</div>